
package apresentacao;

import java.io.Serializable;
import java.util.Map;

import javax.annotation.PostConstruct;
import javax.faces.bean.RequestScoped;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.inject.Inject;
import javax.inject.Named;

import modelo.Imovel;
import servico.ServicoImovel;


@Named(value="MbAnuncioImovel")
@RequestScoped
public class MbAnuncioImovel implements Serializable{	
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Inject
	private Imovel imovel;	
	
	@Inject
	private ServicoImovel servicoImovel;
	
	
	@PostConstruct
	public void verificarImovel() {
				
				ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
				Map<String, String> referenciaImovel = ec.getRequestParameterMap();
				String referencia = referenciaImovel.get("referencia");
				
				 
				
	}


	public Imovel getImovel() {
		return imovel;
	}


	public void setImovel(Imovel imovel) {
		this.imovel = imovel;
	}


	public ServicoImovel getServicoImovel() {
		return servicoImovel;
	}


	public void setServicoImovel(ServicoImovel servicoImovel) {
		this.servicoImovel = servicoImovel;
	}
	
	
	
	
	
	
}
